#include <uorb_pub.hpp>
#include <uorb_utils.hpp>

UorbPub::UorbPub(const char* uorbName, int dataSize)
{
	strncpy(m_UorbName, uorbName, UORB_NAME_SIZE);
	UorbUtils::Instance()->Create(uorbName, dataSize);
}

UorbPub::~UorbPub()
{
}

bool UorbPub::Publish(void* data, int size)
{
	return UorbUtils::Instance()->Publish(m_UorbName, (char*)data, size);
}